﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class ClassifiedMap : ClassMap<Classified>
    {
        public ClassifiedMap()
        {
            Table("CLASSIFIED");
            Id(x => x.ClassifiedId, "CLASSIFIED_ID").GeneratedBy.Identity();
            Map(x => x.ClassifiedNameEn, "CLASSIFIED_NAME_EN");
            Map(x => x.ClassifiedNameTh, "CLASSIFIED_NAME_TH");
        }
    }
}
